package com.ruoyi.brs.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租赁订单管理对象 brs_rental_order
 * 
 * @author ruoyi
 * @date 2025-01-12
 */
@Builder
public class BrsRentalOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 租赁人id */
    @Excel(name = "租赁人id")
    private Long userId;

    /** 租赁开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rentalTime;

    /** 租赁消耗积分 */
    @Excel(name = "租赁消耗积分")
    private Long rentalPoints;

    /** 租赁状态(1:租赁中 2:已归还 3:已预期) */
    @Excel(name = "租赁状态(1:租赁中 2:已归还 3:已预期)")
    private Long rentalStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRentalTime(Date rentalTime) 
    {
        this.rentalTime = rentalTime;
    }

    public Date getRentalTime() 
    {
        return rentalTime;
    }
    public void setRentalPoints(Long rentalPoints) 
    {
        this.rentalPoints = rentalPoints;
    }

    public Long getRentalPoints() 
    {
        return rentalPoints;
    }
    public void setRentalStatus(Long rentalStatus) 
    {
        this.rentalStatus = rentalStatus;
    }

    public Long getRentalStatus() 
    {
        return rentalStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("userId", getUserId())
            .append("rentalTime", getRentalTime())
            .append("rentalPoints", getRentalPoints())
            .append("rentalStatus", getRentalStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
